<%-- 
    Document   : ModifyAdmin
    Created on : 2012-12-8, 3:05:28
    Author     : Timmy
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="<c:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
        <link href="<c:url value='/css/tablecss.css'/>" rel="stylesheet" type="text/css"/>
        <link href="<c:url value="/css/jquery-ui-1.9.2.custom.min.css" />" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="<c:url value="/scripts/jquery.js" />" ></script>
        <script type="text/javascript" src="<c:url value="/scripts/jquery-ui-1.9.2.custom.min.js" />" ></script>
        <script type="text/javascript">
         $(document).ready(function(){
             $(".btnCls").button();
             $("#goSubmit").click(function(){
                 $("#passwordForm").submit();
             });
             
             $("#goBack").click(function(){
                 window.location = "<s:url value="/usermgmt/adminlist" />"; 
             });
         })  ;  
        </script>
    </head>
    <body>
        <h1>Modify Admin</h1>
        <s:form namespace="/usermgmt" action="processChangeAdminsPsw_%{userName}" method="post" id="passwordForm">
        <table class="borderAll">
            <tr>
                <td>
                    User Name :
                </td>
                <td>
                    <s:property value="userName" />
                </td>
            </tr>
            <tr>
                <td>
                    Password :
                </td>    
                <td>
                    <input name="passWord" type="password" id="passWord" length="20" />
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:center">
                    <a class="btnCls" id="goSubmit">Submit</a>
                    <a class="btnCls" id="goBack">Back</a>
                </td>
            </tr>
        </table>
       </s:form>
    </body>
</html>
